<template>
  <div>
      <!-- 嵌套路由, 一共三部分, 左侧不变, 右侧上方不变, 右侧中间是会变得组件 -->
      <el-container>
            <el-aside width="200px">
                <!-- 左侧导航组件 -->
                <v-side></v-side>
            </el-aside>
            <el-container>
                <el-header >
                    <!-- 右侧头部组件 -->
                    <v-header>

                    </v-header>
                </el-header>
                <el-main>
                    <!-- 右侧可变组件 -->
                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
  </div>
</template>

<script>
import vSide from './vSide'
import vHeader from './vHeader'
export default {
    components: {
        vSide,
        vHeader
    }
}
</script>

<style>

.el-container{
  height: 100vh;
}

.el-header{
    background-color: #ffffff;
    color: #333;
    text-align: center;
    line-height: 60px;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
  }

  
  .el-aside {
    height: 100vh;
    background-color: #282829;
    color: #fff;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 60px;

  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
 
</style>